package com.cnvai.cms.javabean.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class QxbmbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QxbmbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andQxidIsNull() {
            addCriterion("QXID is null");
            return (Criteria) this;
        }

        public Criteria andQxidIsNotNull() {
            addCriterion("QXID is not null");
            return (Criteria) this;
        }

        public Criteria andQxidEqualTo(BigDecimal value) {
            addCriterion("QXID =", value, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidNotEqualTo(BigDecimal value) {
            addCriterion("QXID <>", value, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidGreaterThan(BigDecimal value) {
            addCriterion("QXID >", value, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("QXID >=", value, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidLessThan(BigDecimal value) {
            addCriterion("QXID <", value, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidLessThanOrEqualTo(BigDecimal value) {
            addCriterion("QXID <=", value, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidIn(List<BigDecimal> values) {
            addCriterion("QXID in", values, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidNotIn(List<BigDecimal> values) {
            addCriterion("QXID not in", values, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QXID between", value1, value2, "qxid");
            return (Criteria) this;
        }

        public Criteria andQxidNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QXID not between", value1, value2, "qxid");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("CODE is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("CODE is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("CODE =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("CODE <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("CODE >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("CODE >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("CODE <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("CODE <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("CODE like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("CODE not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("CODE in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("CODE not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("CODE between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("CODE not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andQxmcIsNull() {
            addCriterion("QXMC is null");
            return (Criteria) this;
        }

        public Criteria andQxmcIsNotNull() {
            addCriterion("QXMC is not null");
            return (Criteria) this;
        }

        public Criteria andQxmcEqualTo(String value) {
            addCriterion("QXMC =", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcNotEqualTo(String value) {
            addCriterion("QXMC <>", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcGreaterThan(String value) {
            addCriterion("QXMC >", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcGreaterThanOrEqualTo(String value) {
            addCriterion("QXMC >=", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcLessThan(String value) {
            addCriterion("QXMC <", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcLessThanOrEqualTo(String value) {
            addCriterion("QXMC <=", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcLike(String value) {
            addCriterion("QXMC like", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcNotLike(String value) {
            addCriterion("QXMC not like", value, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcIn(List<String> values) {
            addCriterion("QXMC in", values, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcNotIn(List<String> values) {
            addCriterion("QXMC not in", values, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcBetween(String value1, String value2) {
            addCriterion("QXMC between", value1, value2, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQxmcNotBetween(String value1, String value2) {
            addCriterion("QXMC not between", value1, value2, "qxmc");
            return (Criteria) this;
        }

        public Criteria andQtztIsNull() {
            addCriterion("QTZT is null");
            return (Criteria) this;
        }

        public Criteria andQtztIsNotNull() {
            addCriterion("QTZT is not null");
            return (Criteria) this;
        }

        public Criteria andQtztEqualTo(String value) {
            addCriterion("QTZT =", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztNotEqualTo(String value) {
            addCriterion("QTZT <>", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztGreaterThan(String value) {
            addCriterion("QTZT >", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztGreaterThanOrEqualTo(String value) {
            addCriterion("QTZT >=", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztLessThan(String value) {
            addCriterion("QTZT <", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztLessThanOrEqualTo(String value) {
            addCriterion("QTZT <=", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztLike(String value) {
            addCriterion("QTZT like", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztNotLike(String value) {
            addCriterion("QTZT not like", value, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztIn(List<String> values) {
            addCriterion("QTZT in", values, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztNotIn(List<String> values) {
            addCriterion("QTZT not in", values, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztBetween(String value1, String value2) {
            addCriterion("QTZT between", value1, value2, "qtzt");
            return (Criteria) this;
        }

        public Criteria andQtztNotBetween(String value1, String value2) {
            addCriterion("QTZT not between", value1, value2, "qtzt");
            return (Criteria) this;
        }

        public Criteria andBzIsNull() {
            addCriterion("BZ is null");
            return (Criteria) this;
        }

        public Criteria andBzIsNotNull() {
            addCriterion("BZ is not null");
            return (Criteria) this;
        }

        public Criteria andBzEqualTo(String value) {
            addCriterion("BZ =", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotEqualTo(String value) {
            addCriterion("BZ <>", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzGreaterThan(String value) {
            addCriterion("BZ >", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzGreaterThanOrEqualTo(String value) {
            addCriterion("BZ >=", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzLessThan(String value) {
            addCriterion("BZ <", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzLessThanOrEqualTo(String value) {
            addCriterion("BZ <=", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzLike(String value) {
            addCriterion("BZ like", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotLike(String value) {
            addCriterion("BZ not like", value, "bz");
            return (Criteria) this;
        }

        public Criteria andBzIn(List<String> values) {
            addCriterion("BZ in", values, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotIn(List<String> values) {
            addCriterion("BZ not in", values, "bz");
            return (Criteria) this;
        }

        public Criteria andBzBetween(String value1, String value2) {
            addCriterion("BZ between", value1, value2, "bz");
            return (Criteria) this;
        }

        public Criteria andBzNotBetween(String value1, String value2) {
            addCriterion("BZ not between", value1, value2, "bz");
            return (Criteria) this;
        }

        public Criteria andSyhIsNull() {
            addCriterion("SYH is null");
            return (Criteria) this;
        }

        public Criteria andSyhIsNotNull() {
            addCriterion("SYH is not null");
            return (Criteria) this;
        }

        public Criteria andSyhEqualTo(BigDecimal value) {
            addCriterion("SYH =", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhNotEqualTo(BigDecimal value) {
            addCriterion("SYH <>", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhGreaterThan(BigDecimal value) {
            addCriterion("SYH >", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SYH >=", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhLessThan(BigDecimal value) {
            addCriterion("SYH <", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SYH <=", value, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhIn(List<BigDecimal> values) {
            addCriterion("SYH in", values, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhNotIn(List<BigDecimal> values) {
            addCriterion("SYH not in", values, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SYH between", value1, value2, "syh");
            return (Criteria) this;
        }

        public Criteria andSyhNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SYH not between", value1, value2, "syh");
            return (Criteria) this;
        }

        public Criteria andQxlbIsNull() {
            addCriterion("QXLB is null");
            return (Criteria) this;
        }

        public Criteria andQxlbIsNotNull() {
            addCriterion("QXLB is not null");
            return (Criteria) this;
        }

        public Criteria andQxlbEqualTo(BigDecimal value) {
            addCriterion("QXLB =", value, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbNotEqualTo(BigDecimal value) {
            addCriterion("QXLB <>", value, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbGreaterThan(BigDecimal value) {
            addCriterion("QXLB >", value, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("QXLB >=", value, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbLessThan(BigDecimal value) {
            addCriterion("QXLB <", value, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbLessThanOrEqualTo(BigDecimal value) {
            addCriterion("QXLB <=", value, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbIn(List<BigDecimal> values) {
            addCriterion("QXLB in", values, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbNotIn(List<BigDecimal> values) {
            addCriterion("QXLB not in", values, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QXLB between", value1, value2, "qxlb");
            return (Criteria) this;
        }

        public Criteria andQxlbNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("QXLB not between", value1, value2, "qxlb");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}